import JsonData from "../../Json.js";
let { first } = JsonData.gallery;
Component({
    properties: {
        hiddenLoading: String
    },
    data: {
      Height: "",
      first: first
    },
    methods: {
        imgHeight: function(e) {
            console.log(e);
            let height= wx.getSystemInfoSync().windowWidth * e.detail.height / e.detail.width + "px";
            this.setData({
              Height: height
            });
        }
    },
    ready: function() {
        console.log(this.data.hiddenLoading);
        if(this.data.hiddenLoading) {
          this.app = getApp();
          this.app.show(this, "show0", 1, 5000);
          this.app.slideupshow(this, "slide_up0", 8, .9, 800, 4000);
          this.app.slideupshow(this, "slide_up1", 20, 1, 800, 4000);
          this.app.slideupshow(this, "slide_up2", 15, 1, 2000, 4000);
          this.app.show(this, "show1", 1, 4000);
          this.app.scaleshow(this, "scale1", 2, 1, 6000); 
          this.app.sliderightshow(this, "slide_right0", 8, 1, 2000, 4000);
         this.app.sliderightshow(this, "slide_right1", -8, 1, 2000, 4000);
        }
    }
});